package org.mdrtwell.junit;

public class Calculator {
	public int add(int a, int b) {
		return a + b;
	}

	public int minus(int a, int b) {
		return a - b;
	}

	public int multiply(int a, int b) {
		return a * b;
	}

	public int divide(int a, int b) {
		if (0 == b) {
			throw new IllegalArgumentException("0不能作为除数！");
		}
		return a / b;
	}

	private int addPrivate(int a, int b) {
		return a + b;
	}
}
